<div style="Filter">
    Filter:
	<select onchange="<?php echo selectAction('status','&group='.$group)?>">
		<option value="-10">Select Status</option>
		<?php echo ListStatusUser($status)?>
	</select>
	<select onchange="<?php echo selectAction('group','&status='.$status)?>">
		<option value="-10">Select Group</option>
		<?php echo List_Group_Change($group)?>
	</select>
</div>
<form name="form_admin"  method="POST" action="<?php echo formAction('updatestatus')?>">
    <table width="100%" cellpadding="4" cellspacing="1" id="tblsort">
    	<tr class="headtb" nodrop="true" nodrag="true">
            <td width="1%">#</td>
            <td width="20%">User Name</td>
    		<td width="20%"><?php echo Email?></td>
    		<td width="10%"><?php echo _FULLNAME?></td>
    		<td width="10%"><?php echo _ACCOUNTGROUP?></td>
    		<td width="10%"><?php echo Status?></td>
    		<td width="15%"><?php echo _ACTIONS?></td>
    		<td>&nbsp;</td>
    	</tr>
    	<?php
    	foreach ($accounts as $i=>$account)
    	{
    		if($account["cName"]=="admin")continue;
    	?>
    	<tr>
            <td><?php echo $account['iAccountId']?></td>
            <td>
    			<?php echo linkAction('edit',$account["cName"],'&id='.$account["iAccountId"])?>
    		</td>
    	    <td>
    			<?php echo linkAction('edit',$account["cEmail"],'&id='.$account["iAccountId"])?>
    		</td>
    		<td><?php echo $account["cFirstName"]. " ".$account['cLastName'] ?></td>
    		<td><?php echo $account["cGroupName"] ?></td>
    		<td>
    			<input type="hidden" name="listid[]" value="<?php echo $account['iAccountId']?>" />
    			<select name="liststatus[]">
    				<?php echo ListStatusUser($account['iStatus'])?>
    			</select>
    		</td>
    		<td>
    			<?php echo linkAction('edit',_EDIT,'id='.$account["iAccountId"])?> -
    	       	<?php echo linkAction('delete',_DELETE,'id='.$account['iAccountId'])?>
    		</td>
    		<td></td>
    	 </tr>
    	<?php
    	}
    	if(count($accounts)==0)
    	{
    	?>
    		<tr nodrop="true" nodrag="true">
    			<td align="center" colspan="5" style="color:#FF0000">not found user</td>
    		</tr>
    	<?php
    	}
    	?>
    </table>
	<?php  echo $show_page; ?>
</form>
<script type="text/javascript">
(new TableDnD).buildrows("tblsort");
</script>